package com.vito.framework.system.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.vito.framework.system.menu.model.MenuBean;
import com.vito.framework.system.role.model.RoleBean;
import com.vito.framework.system.user.model.UserBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper extends BaseMapper<UserBean> {
	MenuBean getSessionMenu(Map<String, Object> map);

	UserBean getUserById(Map<String, Object> paramMap);

	List<UserBean> getUserList(Map<String, Object> paramMap);

	List<RoleBean> getRoleByOrgId(@Param("siId") String orgId);

	void insertUser(UserBean user);

	void insertUserRole(RoleBean role);

	String getUserEditCount(UserBean user);

	void updateUser(UserBean user);

	void deleteUserRole(String userId);

	void deleteUser(Map<String, Object> paramMap);

	void pauseUserStat(Map<String, Object> paramMap);

	void startUserStat(Map<String, Object> paramMap);

	String checkOldPwd(Map<String, String> paramMap);

	void personInfo(UserBean userBean);

	int updatePassword(Map<String, Object> paramMap);

	String queryTemplateList(Map<String, Object> map);

	UserBean getUserByName(Map<String, Object> paramMap);

	UserBean selectbyuserid(String userId);

	void updategly(UserBean userbean);
}
